Skip to content

Arm backend: Refactor TosaArg to use TosaSpecification #10655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2025

Conversation

oscarandersson8218
Copy link
Collaborator

@oscarandersson8218 oscarandersson8218 commented May 2, 2025

Summary

Make TosaArg aware of which TosaSpecification is used. This is used to map torch-dtypes to TOSA-dtypes.

cc @digantdesai @freddan80 @per @zingo

Copy link

pytorch-bot bot commented May 2, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10655

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 37c365d with merge base cd3b53d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 2, 2025
@oscarandersson8218 oscarandersson8218 added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk topic: not user facing and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels May 2, 2025
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 2, 2025
Refactor is_consumer_node_depthwise_conv2d to not use TosaArg.

Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: I8a556ce290242b0a660f56a8f4048cba806817af
Refactor SliceCopySupport to not use TosaArg, but to use torch.fx.Node
instead.

Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: I1d67161d017a5e70348fa1aeaa0857041274bc6d
Refactor TosaArg to take TosaSpecification as an optional input. The
spec is used for mapping torch.dtypes to to TOSA dtypes.

Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: I2d52da4eededc36f8daefb3cb46214e9d374d306
@zingo
Copy link
Collaborator

zingo commented May 5, 2025

@oscarandersson8218 This seem to need a rebase

@oscarandersson8218 oscarandersson8218 force-pushed the refactor_TosaArg_usage branch from 78b9860 to 37c365d Compare May 5, 2025 06:58
@zingo zingo merged commit 6da46fb into pytorch:main May 5, 2025
261 of 263 checks passed
jhelsby pushed a commit to jhelsby/executorch that referenced this pull request May 9, 2025
### Summary
Make TosaArg aware of which TosaSpecification is used. This is used to
map torch-dtypes to TOSA-dtypes.

Signed-off-by: Oscar Andersson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants